function* quips (name) {
    yield `Hello, ${name}`
    yield '希望你喜欢我，谢谢！'
    if (name.startsWith('Z')) {
        yield `你的名字${name}以Z开头，真的很酷.`
    }
    yield '下次见噢！'
}

let cat = quips('Zhyihui')
let s = cat.next()
// console.log(s1)
console.log('start...')
while(!s.done) {
    console.log(s.value)
    s = cat.next()
}